<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Codesphere ::</title>
<link href='http://fonts.googleapis.com/css?family=Philosopher'
	rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="styles/csmain.css">
<script src="scripts/jquery-1.4.4.js" type="text/javascript"></script>
<script src="scripts/jquery.tmpl.js" type="text/javascript"></script>

<script type="text/javascript">
	$(document).ready(function() {

		// hook submit button
		$('#repoform').submit(function(data) {
			var $this = $(this);
			
			$('#message').text("Processing...");
			
			var dataToSend = $this.serialize();
			
			$.post('/codesphereweb/resources/admin/repositories', dataToSend, function(data) {
				$('#message').text(data);
			});
			
			return false;
		});


	}); // ready
</script>

</head>
<body>
<body>
<div id="wrapper">
<div id="header">
<h1 align="right"><a href="/codesphereweb">Codesphere</a></h1>
</div>
<div id="main">
	<form id="repoform" action="#">
		<label for="titleText">Title:</label>
		<input type="text" name="title" id="titleValue" value="dailymole"/>
		<label for="locationText">Location:</label>
		<input type="text" name="location" id="locationValue" size="60" value="http://dailymole.googlecode.com/svn/trunk/"/>
		<label for="usernameText">Username:</label>
		<input type="text" name="username" id="usernameValue" value="anonymous"/>
		<label for="passwordText">Password:</label>
		<input type="password"" name="password" id="passwordValue" value="anonymous">
		<input type="submit" name="submit" value="Submit"/>
	</form>
	<p id="message"/>
</div>
<div id="footer"></div>
</div>
</body>
</html>